

const routes = [
    {
        path:'/',
        name:'login',
        component:()=>import('../components/Login.vue')
    },
    {
        path: '/forgot',
        name: 'forgot',
        component:()=>import('../components/Forgot.vue')
    },
    {
        path: '/register',
        name: 'register',
        component:()=>import('../components/Register.vue')
    },
    {
        path: '/home',
        name: 'home',
        component:()=>import('../components/Home.vue'),
        children:[
            {
                path: '/User',
                name: 'user',
                component:()=>import('../components/User.vue')
            }
        ]
    }
]